'''
  This Source Code Form is subject to the terms of the Mozilla Public
  License, v. 2.0. If a copy of the MPL was not distributed with this
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
'''
import time
print("##############    ", "\n", 
"         ====   Copyright 2025 (C) SA", "\n", 
"     A   ====   \n",  
"====A A         Magic Clock 1.0\n", 
"       A A====  Powered By SNOWARE\n", 
"        V       开发代号：瑶光\n", 
"====            \n", 
"====\n", 
"##############")

from swe.log import log

import gc
gc.enable()
log("debug", "Sys::Setup::mem", "Auto GC is enabled!", if_print = False)
del gc

import swe.wifi as wifi
wifi.connect()
time.sleep(6)

import swe.time as stime
stime.syncSysTime()

from swe.display import display_4
def main():
    while True:
        display_4(stime.generateForDisplay())
        log("debug", "Sys::MainLoop", "The content of display refreshed!", if_print = False)
main()